package com.hnucm.c202001020216.pojo;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class Login implements Serializable {

    @SerializedName("msg")
    public String msg;
    @SerializedName("code")
    public Integer code;
    @SerializedName("expire")
    public Integer expire;
    @SerializedName("user")
    public UserDTO user;
    @SerializedName("token")
    public String token;

    @NoArgsConstructor
    @Data
    public static class UserDTO implements Serializable {
        @SerializedName("userId")
        public Integer userId;
        @SerializedName("username")
        public String username;
        @SerializedName("userPic")
        public String userPic;
        @SerializedName("mobile")
        public String mobile;
        @SerializedName("password")
        public String password;
        @SerializedName("createTime")
        public String createTime;
    }
}
